Also addresses other compatibility issues with PG mentioned
in comments on I7a4071072.
Bug: T184333
Change-Id: I478aa1aee15fdef99630c65a37b1af5f3f8cce14
$this->ensureMockDatabaseConnection( $db );
foreach ( $tables as $tbl ) {
$this->ensureMockDatabaseConnection( $db );
foreach ( $tables as $tbl ) {
- $tmp = self::$useTemporaryTables ? ' TEMPORARY ' : '';
$tbl = $db->tableName( $tbl );
$tbl = $db->tableName( $tbl );
- $db->query( "DROP $tmp TABLE IF EXISTS $tbl", __METHOD__ );
+ $db->query( "DROP TABLE IF EXISTS $tbl", __METHOD__ );
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
) /*$wgDBTableOptions*/;
CREATE TABLE /*_*/imagelinks (
) /*$wgDBTableOptions*/;
CREATE TABLE /*_*/imagelinks (
- il_from int(10) unsigned NOT NULL DEFAULT 0,
- il_from_namespace int(11) NOT NULL DEFAULT 0,
- il_to varbinary(255) NOT NULL DEFAULT '',
+ il_from int NOT NULL DEFAULT 0,
+ il_from_namespace int NOT NULL DEFAULT 0,
+ il_to varchar(255) NOT NULL DEFAULT '',
il_frobniz varchar(255) NOT NULL DEFAULT 'FROB',
PRIMARY KEY (il_from,il_to)
) /*$wgDBTableOptions*/;
il_frobniz varchar(255) NOT NULL DEFAULT 'FROB',
PRIMARY KEY (il_from,il_to)
) /*$wgDBTableOptions*/;